<template>
  <div id="app">    
    <vue-drop-down-refresh v-model="refresh" @refresh="onDropDownRefresh">
      列表组件
    </vue-drop-down-refresh>
  </div>
</template>

<script>
import DropDownRefresh from './components/DropDownRefresh.vue'
export default {
  name: 'app',
  components:{
    DropDownRefresh
  },
  data() {
    return {
      refresh: false
    };
  },
  methods: {
    onDropDownRefresh() {
      setTimeout(() => {
        this.refresh = false;
      }, 2000);
    }
  }
}
</script>

<style lang="scss">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

</style>
